@import (reference) "~weaver-mobile/dist/weaver-mobile.less";

@homePagePreFixCls: wm-home-page;

.@{homePagePreFixCls} {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;

  ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .am-result {
    background: none; 
    border: none;
    padding-top: 45%;
    .am-icon-no-data {
      color: @color-text-caption;
      width: 60 * @hd;
      height: 60 * @hd;
    }
  }

  .wm-list-view-page-modal-nomore {
    padding-top: 20px;
    font-size: 12px;
    line-height: 12px;
  }

  .wm-tab-page {
    height: 45px;
  }

  &.am-accordion {
    border-top: none;
    .am-accordion-header{
      border-bottom: 1 * @hd solid #BCBBC1;
    }
  }

  .entrance-title {
    padding: 10 * @hd;
  }

  .entrance-title-icon {
    width: 30 * @hd;
    height: 30 * @hd;
    display: inline-block;
    background-size: cover;
    vertical-align: middle;
    border-radius: 5px;
  }

  .entrance-title-span {
    line-height: 30 * @hd;
    height: 30 * @hd;
    font-size: 20 * @hd;
    vertical-align: middle;
    margin-left: 10 * @hd;
  }

  .entrance-content {
    font-size: 0;
    margin-bottom: 8 * @hd;

    .am-accordion-content-box {
      padding-bottom: 20 * @hd;
    }
  }

  .entrance-item {
    width: 21%;
    display: inline-block;
    margin-left: 2%;
    margin-right: 2%;
    font-size: 12 * @hd;
    text-align: center;
    margin-top: 20 * @hd;
    transition: opacity 0.4s ease-in-out;

    .am-badge-text {
      border: 2px @fill-base solid;
    }
  }

  .entrance-item-hidden-icon {
    position: absolute;
    width: 17 * @hd;
    height: 15 * @hd;
    top: -8 * @hd;
    left: -8 * @hd;
    background: rgb(255,255,255);
    border-radius: 9 * @hd;
  }

  .entrance-item-icon {
    width: 50px;
    height: 50px;
    display: inline-block;
    background-size: cover;
    vertical-align: middle;
    border-radius: 10px;
  }

  .entrance-item-title {
    margin-top: 10 * @hd;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }

  .img-container {
    text-align: center;
    padding-top: 50%;

    span {
      display: block;
      text-align: center;
    }
  }

  .icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    flex-wrap: wrap;
    text-align: center;

    .am-icon {
      align-self: flex-end;
    }

    span {
      width: 100%;
      align-self: flex-start;
    }
  }

  .entrance-item-animate{
    display: inline-block;
    -webkit-transform-origin: center center;
    -webkit-animation-name: animate;
    -webkit-animation-duration: 0.5s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
  }

  @keyframes animate{
    0% {
      -webkit-transform: rotate(0deg);
    }
    12.5% {
      -webkit-transform: rotate(1.25deg);
    }
    25% {
      -webkit-transform: rotate(2.5deg);
    }
    37.5% {
      -webkit-transform: rotate(1.25deg);
    }
    50% {
      -webkit-transform: rotate(0deg);
    }
    62.5% {
      -webkit-transform: rotate(-1.25deg);
    }
    75% {
      -webkit-transform: rotate(-2.5deg);
    }
    87.5% {
      -webkit-transform: rotate(-1.25deg);
    }
    100% {
      -webkit-transform: rotate(0deg);
    }
  }

  .wm-footer-more{
    height: 45 * @hd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 45 * @hd;
    padding: 0  15 * @hd;
    font-size: 14 * @hd;
    background-color: white;
    border-bottom: 1 * @hd solid #ddd;
  }
}

.wm-home-entrance {
  height: 100%;

  .am-list-footer {
    padding-top: 25px;
  }

  .am-list-body {
    border-bottom: 0;
  }

  .wm-list-view-page-modal-scrollview .am-pull-to-refresh-indicator {
    height: 25px;
    margin-top: -25px;
  }

  .wm-home-list-view-page {
    background-color:@fill-body;

    .wm-list-page-item {

      .am-list-line {
        border: none;
      }

      .am-list-item {
        background-color: @fill-body;
      }

      .message-item-wrapper {
        padding-left: 15 * @hd;
        padding-right: 15 * @hd;

        .message-time {
          text-align: center;
          background-color: @fill-body;
          color: @color-text-caption;
          margin-bottom: 7 * @hd;
        }

        .message-image {
          height: 120 * @hd;
          background-size: cover;
          background-position: center;
          background-repeat: no-repeat;
          background-color: #eee;
        }

        .message-item {
          border: 1px solid @border-color-base;
          background-color: @fill-base;
          // padding: 8 * @hd 12 * @hd;

          .message-content-wrapper {
            position: relative;
            overflow: hidden;

            padding: 8 * @hd 12 * @hd 0 12 * @hd;
          }

          .message-status {
            position: absolute;
            right: 0;
            bottom: 0;
            padding: 5 * @hd 15 * @hd;
            border: 4 * @hd solid @color-text-secondary;
            color: @color-text-secondary;
            transform: rotate(-25deg);
            background-color: @fill-base;
          }

          p {
            margin: 0;
            padding: 0;
          }

          .message-name {
            color: @color-text-caption;
            margin-bottom: 5 * @hd;
          }
          .message-title {
            color: @color-text-paragraph;
            margin-bottom: 10 * @hd;
          }
          .message-content {
            color: @color-text-secondary;
            padding-bottom: 4 * @hd;
          }

          .message-footer {
            border-top: 1px solid @border-color-base;
            padding: 5 * @hd 0 8 * @hd 0;
            margin: 0 12 * @hd;

            .am-icon {
              float: right;
            }
          }
        }
      }
    }
  }
}


.wm-home-about-page {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;

  p {
    margin: 0;
    padding: 0;
  }
  
  .top-content,
  .bottom-content {
    height: 50%;
    width: 100%;
  }

  .logo-text {
    height: 60%;
    text-align: center;
    vertical-align: bottom;
    position: relative;
  }

  .logo-text p {
    position: absolute;
    bottom: 0;
    width: 100%;
    font-size: 60px;
    color: @brand-primary-tap;
  }

  .content-info {
    height: 40%;
    text-align: center;
    vertical-align: top;
    color: @color-text-paragraph;
    font-size: 18px;
  }

  .bottom-content-wraper {
    padding: 10 * @hd;
  }

  .bottom-content-item {
    border-top: 1px solid @color-text-placeholder;
    border-left: 1px solid @color-text-placeholder;
    border-right: 1px solid @color-text-placeholder;
    padding: 5 * @hd 10 * @hd 5 * @hd 10 * @hd;
  }

  .bottom-content-item:nth-last-child(1) {
    border-bottom: 1px solid @color-text-placeholder;
    border-radius: 0 0 10px 10px;
  }

  .bottom-content-item:nth-child(1) {
    border-radius: 10px 10px 0 0;
  }
}


.wm-home-footer{
  position: fixed;
  bottom: 0;
  width: 100%;
  .wm-home-reset{
    text-align: center;
    line-height: 36 * @hd;
    font-size: 14 * @hd;
    height: 36 * @hd;
    box-shadow:0px -5 * @hd 5 * @hd #f1f1f1;
    background-color: #f5f5f5;
  }
}
.wm-home-more{
  height: 36 * @hd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 36 * @hd;
  padding: 0 20 * @hd;
  font-size: 14 * @hd;
}
